package org.dromara.patrol.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * 巡店管理-巡店报告整改审核对象 patrol_report_verify
 *
 * @author han
 * @date 2024-03-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("patrol_report_verify")
public class PatrolReportVerify extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 审核id
     */
    @TableId(value = "verify_id")
    private Long verifyId;

    /**
     * 报告id
     */
    private Long reportId;

    /**
     * 巡店报告扣分、问题、整改项id（patrol_template_node.id）
     */
    private Long nodeId;

    /**
     * 整改人id
     */
    private Long rectifyId;

    /**
     * 审核状态（字典表：PASS 审核通过，AGAIN_RECTIFY 重新整改）
     */
    private String verifyStatus;



    /**
     * 审核内容
     */
    private String content;
    /**
     * 审核图片[
     {
     "key": "patrol/2024-03-14/bdd70a00-e1de-11ee-8517-777063f1ffca",
     "fileUrl": "https://yd-img-pro.yunding360.com/up0dcnng/patrol/2024-03-14/bdd70a00-e1de-11ee-8517-777063f1ffca",
     "imagePath": null,
     "mediaType": null
     }
     ]
     */
    @TableField(typeHandler = com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    private Object files;

}
